###
 # @Descripttion: 
 # @version: 
 # @Author: 王政乔(https://www.zhengqiao.wang/)
 # @Date: 2020-05-09 17:55:52
 # @LastEditors: 王政乔(https://www.zhengqiao.wang/)
 # @LastEditTime: 2020-05-09 18:02:37
 ###
#!/bin/bash


a=101
b=10

# 这种方法不可行
let "c=$a -a $b"
echo $c


let "c=$a & $b"
echo "按位与： $c"

let "c=$a | $b"
echo "按位或： $c"

let "c=~$a"
echo "按位非： $c"

let "c=$a ^ $b"
echo "按位异或： $c"


let "c=$a>>2"
echo "按位右移两位： $c"

let "c=$a<<2"
echo "按位左移两位： $c"
